<?php
function getDynamicCombo($entity, $url_code_base, $name_component){
    if($entity=='localidades'){
    echo '<div class="dhx_combo_list " style="width: 300px; display: none; "></div> '.
        '<script type="text/javascript">window.dhx_globalImgPath = "'.$url_code_base.'codebase/imgs/";</script> '.
        '<link rel="STYLESHEET" type="text/css" href="'.$url_code_base.'codebase/dhtmlxcombo.css"/> '.
        '<script type="text/javascript" src="'.$url_code_base.'codebase/dhtmlxcommon.js"></script> '.
        '<script type="text/javascript" src="'.$url_code_base.'codebase/dhtmlxcombo.js"></script> '.
        '<div id="combo_zone" style="width:300px;height:30px;text-transform: capitalize;"></div> '.
        '<script type="text/javascript"> '.
        '    function doOnLoad() {var z = new dhtmlXCombo("combo_zone", "'.$name_component.'", 300);z.enableFilteringMode(true, "'.$url_code_base.'php/loadCombo.php", true, true);}'.
        '</script>'.
        '<script type="text/javascript">doOnLoad();</script>';
    }
}
?>
